<script setup lang="ts">
   import {onMounted} from "vue";

   let bUserLogged: boolean = false

   onMounted(() => {
      console.log("MainMenu view has mounted...");

      //TODO: 判断浏览器登录缓存，如不存在则跳转至用户登录
      bUserLogged = JSON.parse(localStorage.getItem('user')) !== null
      if (!bUserLogged) {
         window.location.href = '/login'
         return
      }
   })
</script>

<template>
</template>

<style scoped>

</style>